﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" assembly="NHibernateDemo.DAL" namespace="NHibernateDemo.DAL.Entity">
    <class name="NHibernateDemo.DAL.Entity.ver2.FundBasic2" table ="FundBasic" >
        <id name="FundKey" column="FundKey" type="string" length="6" >
            <generator class="assigned" ></generator>
        </id>
        <property name="FundId" type="string" column="FundId" length="10"></property>
        <property name="FundTypeId" type="int" column="FundTypeId" />
        <property name="Domicile" type="string" column="Domicile" />
        <property name="FundStatusId" type="int" column="FundStatusId" />
        <property name="LegalName" type="string" column="LegalName"></property>
        <set name="ShareClasses" table="ShareClassBasic" generic="true"  inverse ="false"  cascade="all">
            <key column="FundKey" />
            <one-to-many class="NHibernateDemo.DAL.Entity.ver2.ShareClassBasic"    />
        </set>
    </class>
</hibernate-mapping>